<?php
//初始化session
session_start();
header("Access-Control-Allow-Origin:*");
//删除session变量
if(isset($_SESSION["username"])){
  unset($_SESSION["username"]);
  echo "退出成功!";
}

